<div style="float: right; margin-left: 2em; margin-bottom: 2em;">
	<h3 style="margin-top: 0; text-align: right; font-weight: bold;">Author - contact</h3>
		<div style="text-align: right;">Czarek Tomczak: </div>
	<h3 style="margin-top: 1em; text-align: right; font-weight: bold;">When you launch the script, a progress window will appear</h3>
		<img src="/img/movies-en-running.jpg" style="border-width: 0px;" alt="When you launch the script, a progress window will appear">
	<h3 style="margin-top: 1em; text-align: right; font-weight: bold;">A list of movies generated in D:/movies/ directory</h3>
		<img src="/img/movies-en-result.jpg" style="border-width: 0px;" alt="A list of movies generated in D:/movies/ directory">
</div>

<h1>Generate a list of movies on a computer <span style="display: block; margin-top: 0.4em;">- movies.js (windows script)</span></h1>

	<p style="background: rgb(245,255,245); border: #aaa 1px solid; padding: 0.5em 1em; width: 450px;">
		English documentation for this script is a work in progress.
		If you have problems with the script try reading the <a href="http://translate.google.com/translate?js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&sl=pl&tl=en&u=http%3A%2F%2Fwww.gosu.pl%2Fmovies-pl.html">documentation in Polish</a>
		which is more comprehensive - try using <a href="http://translate.google.com/translate?js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&sl=pl&tl=en&u=http%3A%2F%2Fwww.gosu.pl%2Fmovies-pl.html">Google Translate</a>
	</p>

	<p>
		This script makes a list of movies in a directory, downloads info about the movie from imdb.com (poster, rating, genre, description, cast) and writes the result to movies.html. You can easily play movies from the list with just 1 click (firefox).
	</p>
	<p>
		No installation is required. This script uses Windows Script Host technology, which is distributed and installed by default on Windows.
	</p>
	<p>This script is free for private use.</p>

<h2>How to use</h2>
	
	<ol>
		<li>Download <a class="download-big" href="/dl/movies/movies-en.zip?ver=125">movies-en.zip</a>, extract it to a directory where you keep the movies.</li>
		<li>Run movies.js (or movies.wsh)</li>
	</ol>

<h2>Download the latest version</h2>

	<p>
		Version 1.2.5:
		<a class="download-big" href="/dl/movies/movies-en.zip?ver=125">movies-en.zip</a>
		[40 KB] (2011-08-07)
	</p>

	<h3>Changes in 1.2.5</h3>
	<ul>
		<li>It is now possible to generates movies list using a virtual list of files.</li>
	</ul>

	<h3>Changes in 1.2.2</h3>
	<ul>
		<li>Minor improvements to title detection on imdb.</li>
	</ul>

	<h3>Changes in 1.2.1</h3>
	<ul>
		<li>Version change forced by update of the polish version of the script.</li>
	</ul>

	<p>
		<a href="javascript:void(0)" onclick="document.getElementById('old_changes').style.display='block';">Show changes in older versions</a>
	</p>

	
	
	<div id=old_changes style="display: none;">

		<h3>Changes in 1.2.0</h3>
		<ul>
			<li>Enhancements to movie detection algorithm.</li>
		</ul>

		<h3>Changes in 1.1.9</h3>
		<ul>
			<li>Fixed problems that caused rating missing for some of the movies.</li>
		</ul>

		<h3>Changes in 1.1.8</h3>
		<ul>
			<li>Changes on imdb were made and script had troubles detecting TV series.</li>
		</ul>

		<h3>Changes in 1.1.7</h3>
		<ul>
			<li>Fix for users with operating system languages other than US. IMDB displayed localized
				movie titles depending on Accept-Language header sent by IE browser. That caused some
				troubles when searching for movies cause their titles were non-english, also there
				were missing english titles on the movies list.</li>
		</ul>

		<h3>Changes in 1.1.4</h3>
		<ul>
			<li>this is really a 1.1.33 version, see changes below, this release is just so users using version 1.1.31 or lower
				will get notified about newer version when they run the script</li>
		</ul>

		<h3>Changes in 1.1.33</h3>

		<ul>
			<li>with fixes to recent issues on imdb, still some minor bugs exist, for a few percent of movies some data is missing,
			but running the script again will fix that data, it will be re-downloaded</li>
		</ul>

		<h3>Changes in 1.1.3</h3>

			<ul>
				<li>changes on imdb, fixed detecting "aka" titles</li>
			</ul>

		<h3>Changes in 1.1.2</h3>
			
			<ul>		
				<li>improvements in titles detection</li>
			</ul>

		<h3>Changes in 1.1.0</h3>
			
			<ul>		
				<li>changes on imdb website, rating could not be fetched</li>
			</ul>

		<h3>Changes in 1.0.92</h3>
			
			<ul>		
				<li>plot was missing (changes on imdb site)</li>
			</ul>

		<h3>Changes in 1.0.91</h3>

			<ul>
				<li>movies detection improvements</li>
				<li>set your own movie title by adding such line "mytitle: 007 Casino Royale" to .nfo file</li>
			</ul>

		<h3>Changes in 1.0.8</h3>

			<ul>
				<li>fixed fetching cast from imdb</li>
			</ul>

		<h3>Changes in 1.0.6</h3>

			<ul>
				<li>imdb search fixed</li>
			</ul>

		<h3>Changes in 1.0.4</h3>

			<ul>
				<li>network folders can start with IP or domain</li>
				<li>fixed errors that caused the script to hang up (ex. + in file name, special chars in title on imdb)</li>
				<li>fixed directories filter</li>
			</ul>

		<h3>Changes in 1.0.3</h3>

			<ul>
				<li>sort by rating</li>
				<li>generate movies from different directories / drives / network folders</li>
				<li>chanes in movies names detection / tv shows numeration</li>
			</ul>

		<h3>Changes in 1.0.2</h3>

			<ul>
				<li>new field "Director"</li>
				<li>improved movies names detection</li>
				<li>changes in TV shows numeration</li>
				<li>fixed http errors handling</li>
			</ul>

	</div>

<a name="linux-theater"></a>
<h2>Linux - download Folder Theater</h2>

	<p>
		For linux users there is a Python script called "Folder Theater",
		that was created by <b>Mathieu Leplatre</b>, inspired by movies.js
		project.
	</p>

	<p>
		Download it here:
		<a href="https://github.com/leplatrem/folder-theater">https://github.com/leplatrem/folder-theater</a>
	</p>

	<p>Screenshot:<br>
		<img src="/img/folder-theater.jpg" width=400 height=362 alt="Folder Theater by Mathieu Leplatre">
		</p>

<a name="tree-files"></a>
<h2>Virtual list of files - solution for Mac and Linux or DVD discs</h2>

	<p>documentation TODO.....</p>

	<p>Listing files - command for Mac and Linux</p>
	<pre>find . -type f > movies.tree</pre>

	<p>Listing files - command for Windows:</p>
	<pre>dir /a-d /b /s > movies.tree</pre>

	<p>Then copy "movies.tree" to windows machine and run movies.js script, when script finds "movies.tree" file in current directory
	it will not perform scanning of actual directory but will use the list of files from that ".tree" file instead.</p>

<h2>Configuration file movies.txt</h2>
	
	<p>
		In order to generate the list from different directories/drives, create movies.txt file, and put there paths to directories / drives / network folders. An example config file:
	</p>
	
	<pre>
	D:\movies\
	G:\Downloads\
	F:\
	\\john\movies\
	\\192.168.0.3\movies\

	-- This is a comment, it starts with "-" (minus).
	-- If some drives/network folders aren't accessible comment it.

	--\\kevin\movies\
	</pre>

	<p>
		Supplying only a drive path is an easy way, but whenever possible try to write the full path to movies directory. Scanning a drive with lots of files can take a while (for example scanning 20 thousands of files should take about one minute).
	</p>

<h2>More info</h2>

	<p>Searching in: title, genre, description, cast. You can exclude words, ex. search:
	"comedy romance -drama".</p>

	<p>You can play movies from the list with one click. When clicking on a movie, associate
	opening .avi with your favorite player and check the option to always use this
	application. If option of remembering this setting is blocked on firefox, you can edit
	mimetypes.rdf that is in you firefox profile (more info at the end of this page).</p>

	<p>The script tries to guess the name of the movie from the file name or directory (only
	when it contains one movie).</p>

	<p>If the directory contains only one movie, it can read any .nfo files to get the imdb
	link. If the script fails to guess the name of the movie, you can manually create an
	.nfo file (for example movie.nfo) and put an imdb link there (ex.
	imdb.com/title/tt123456).</p>

<h2>Editing mimetypes.rdf</h2>

	<div>Example path: firefox/profile/abc/mimetypes.rdf</div>
	<div>More info about editing this file: <a href="http://kb.mozillazine.org/MimeTypes.rdf">http://kb.mozillazine.org/MimeTypes.rdf</a></div>

	<pre>
	&lt;RDF:li RDF:resource="urn:mimetype:video/avi"/&gt;
	&lt;RDF:li RDF:resource="urn:mimetype:application/vnd.rn-realmedia-vbr"/&gt;

	-- --

	&lt;RDF:Description RDF:about="urn:mimetype:video/avi"
					   NC:fileExtensions="avi"
					   NC:description="AVI"
					   NC:useSystemDefault="true"
					   NC:value="video/avi"
					   NC:editable="true"&gt;
		&lt;NC:handlerProp RDF:resource="urn:mimetype:handler:video/avi"/&gt;
	&lt;/RDF:Description&gt;

	&lt;RDF:Description RDF:about="urn:mimetype:application/vnd.rn-realmedia-vbr"
					   NC:fileExtensions="rmvb"
					   NC:description="RMVB"
					   NC:useSystemDefault="true"
					   NC:value="application/vnd.rn-realmedia-vbr"
					   NC:editable="true"&gt;
		NC:handlerProp RDF:resource="urn:mimetype:handler:application/vnd.rn-realmedia-vbr"/&gt;
	&lt;/RDF:Description&gt;
	</pre>

